import 'package:encrypt_and_decrypt_files/widget/local_language_provider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

extension StringExtension on String {
  String t(BuildContext context) {
    final provider = Provider.of<LanguageProvider>(context, listen: false);
    return provider.translate(this);
  }
}